package com.platform.service.impl;

import com.platform.dao.ShareBillDao;
import com.platform.entity.ApiShareBillEntity;
import com.platform.entity.ShareBillEntity;
import com.platform.service.ShareBillService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;


/**
 * Service实现类
 *
 * @author zhurusen
 * @email 524227263@qq.com
 * @date 2018-06-16 14:48:27
 */
@Service("shareBillService")
public class ShareBillServiceImpl implements ShareBillService {
    @Autowired
    private ShareBillDao shareBillDao;

    @Override
    public ShareBillEntity queryObject(Long id) {
        return shareBillDao.queryObject(id);
    }

    @Override
    public List<ShareBillEntity> queryList(Map<String, Object> map) {
        return shareBillDao.queryList(map);
    }

    @Override
    public int queryTotal(Map<String, Object> map) {
        return shareBillDao.queryTotal(map);
    }

    @Override
    public int save(ShareBillEntity apiShareBill) {
        return shareBillDao.save(apiShareBill);
    }

    @Override
    public int update(ShareBillEntity apiShareBill) {
        return shareBillDao.update(apiShareBill);
    }

    @Override
    public int delete(Long id) {
        return shareBillDao.delete(id);
    }

    @Override
    public int deleteBatch(Long[] ids) {
        return shareBillDao.deleteBatch(ids);
    }
}
